package com.ldz.elastic.service.impl;

import com.ldz.elastic.dao.TestDao;
import com.ldz.elastic.model.Test;
import com.ldz.elastic.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestServiceImpl implements TestService {

    @Autowired
    private TestDao testDao;

    @Override
    public List<Test> list(int shardingTotalCount, int shardingItem) {
        return testDao.list(shardingTotalCount, shardingItem);
    }

    @Override
    public void update(Integer id, String sign) {
        testDao.update(id, sign);
    }
}
